package org.yanfengying.gift.exception;

public class MyException extends RuntimeException{
    //错误码初始化
    private Integer code;

    public MyException() {
    }

    public MyException(String message) {
        super(message);
    }
    public MyException(String message,Integer code) {
        super(message);
        this.code = code;
    }

    public MyException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyException(Throwable cause) {
        super(cause);
    }

    public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
